<?php

namespace app\request;

use think\Validate;

class Lander extends Validate
{

    protected $scene = [
        'list' => ['mch_id', 'game_id', 'open_id', 'release_type', 'promotion_platform'],
    ];


    protected $rule = [
        'mch_id' => 'require',
        'game_id' => 'require',
        'open_id' => 'require',
        'release_type' => 'require|in:0,1',  // 0测试 1正式
        'promotion_platform' => 'require|in:0,1,2,3',  // 0 pc  // 1 android  // 2 ios  // 3 h5
    ];


    protected $message = [
        'mch_id.require' => '商户不能为空',
        'game_id.require' => '游戏不能为空',
        'open_id.require' => '开发者不能为空',
        'release_type.require' => '请选择类型',
        'release_type.in' => '类型值不支持',
        'promotion_platform.require' => '请选择平台',
        'promotion_platform.in' => '平台值不支持',
    ];

}